﻿@using Telerik.Web.Mvc.UI;
@using Telerik.Web.Mvc;
@{
    string LangCode = SF.GetLangCode();
    List<string> rltList = new List<string>() { "he-IL" };
    bool RTL = true;
    if (rltList.Contains(LangCode)) { RTL = true; }
    else { RTL = false; }

    string Skin = System.Configuration.ConfigurationManager.AppSettings["SkinDefault"];
    if (Session["SkinSelectList"] != null) { Skin = Session["SkinSelectList"] as string; }
}
<!DOCTYPE html>
<html>
<head>
    <title>Uco Admin | @ViewBag.Title</title>
    @if (RTL)
    {
        @(Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group
        .Add("telerik.common.css")
        .Add("telerik." + Skin + ".css")
        .Add("telerik.rtl.css")
        .Add("~/Areas/Admin/Content/uco.css")
        .Add("~/Areas/Admin/Content/uco.rtl.css")
        .Combined(true)
        .Compress(true)))
    }
    else
    {
        @(Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group
        .Add("telerik.common.css")
        .Add("telerik." + Skin + ".css")
        .Add("~/Areas/Admin/Content/uco.css")
        .Combined(true)
        .Compress(true)))
    }
</head>
<body class="overflow_auto @(RTL ? "t-rtl" : "t-ltr")">
@RenderBody()

@(Html.Telerik().ScriptRegistrar()
    .Globalization(true)
    .DefaultGroup(group => group
        .Add("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js")
        .Add("http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js")
        .Add("http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js")
        .Combined(true)
        .Compress(true))
    .Scripts(group => group
        .Add("~/Scripts/telerik.extensions" + (RTL ? ".rtl" : "") + ".js"))
)
@Html.Partial("_Scripts")
</body>
</html>